.. _ocaimpedancesensor: 1.1.2.9 OcaImpedanceSensor =========================== Class Hierarchy: :ref:`OcaRoot ` :raw:html:`→` :ref:`OcaWorker ` :raw:html:`→` :ref:`OcaSensor ` :raw:html:`→` :ref:`OcaImpedanceSensor ` .. cpp:class:: OcaImpedanceSensor: OcaSensor Basic impedance sensor. Value is complex (magnitude and phase). **Properties**: .. _ocaimpedancesensor_classid: .. cpp:member:: static const OcaClassID ClassID = "1.1.2.9" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the **OcaRoot** property. This property has id ``4.1``. .. _ocaimpedancesensor_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 1 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``4.2``. .. _ocaimpedancesensor_reading: .. cpp:member:: OcaImpedance Reading Impedance value (magnitude and phase). This property has id ``4.1``. Properties inherited from :ref:`OcaSensor `: - :cpp:texpr:`OcaSensorReadingState` :ref:`OcaSensor::ReadingState ` Properties inherited from :ref:`OcaWorker `: - :cpp:texpr:`OcaBoolean` :ref:`OcaWorker::Enabled ` - :cpp:texpr:`OcaList` :ref:`OcaWorker::Ports ` - :cpp:texpr:`OcaString` :ref:`OcaWorker::Label ` - :cpp:texpr:`OcaONo` :ref:`OcaWorker::Owner ` - :cpp:texpr:`OcaTimeInterval` :ref:`OcaWorker::Latency ` Properties inherited from :ref:`OcaRoot `: - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` **Methods**: .. _ocaimpedancesensor_getreading: .. cpp:function:: OcaStatus GetReading(OcaImpedance &Reading, OcaImpedance &minReading, OcaImpedance &maxReading) Gets the value and limits of the **Reading** property. The return value indicates whether the data was successfully retrieved. This method has id ``4.1``. :param OcaImpedance Reading: Output parameter. :param OcaImpedance minReading: Output parameter. :param OcaImpedance maxReading: Output parameter. Methods inherited from :ref:`OcaSensor `: - :ref:`OcaSensor::GetReadingState(state) ` Methods inherited from :ref:`OcaWorker `: - :ref:`OcaWorker::GetEnabled(enabled) ` - :ref:`OcaWorker::SetEnabled(enabled) ` - :ref:`OcaWorker::AddPort(Label, Mode, ID) ` - :ref:`OcaWorker::DeletePort(ID) ` - :ref:`OcaWorker::GetPorts(OcaPorts) ` - :ref:`OcaWorker::GetPortName(PortID, Name) ` - :ref:`OcaWorker::SetPortName(PortID, Name) ` - :ref:`OcaWorker::GetLabel(label) ` - :ref:`OcaWorker::SetLabel(label) ` - :ref:`OcaWorker::GetOwner(owner) ` - :ref:`OcaWorker::GetLatency(latency) ` - :ref:`OcaWorker::SetLatency(latency) ` - :ref:`OcaWorker::GetPath(NamePath, ONoPath) ` Methods inherited from :ref:`OcaRoot `: - :ref:`OcaRoot::GetClassIdentification(ClassIdentification) ` - :ref:`OcaRoot::GetLockable(lockable) ` - :ref:`OcaRoot::LockTotal() ` - :ref:`OcaRoot::Unlock() ` - :ref:`OcaRoot::GetRole(Role) ` - :ref:`OcaRoot::LockReadonly() `